﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SharingCenter.Web.Classes;
using SharingCenter.Web.Classes.enums;

namespace SharingCenter.Web.Mod.Albums
{
    public partial class Default : PageBase
    {
        EntityType contextType;
        Guid contextId;

        

        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ct"] == null || Request.QueryString["id"] == null)
            {
                RedirectToDefaultPage();
            }
            else
            {
                try
                {
                    contextType = (EntityType)Enum.Parse(typeof(EntityType), Request.QueryString["ct"]);
                    contextId = new Guid(Request.QueryString["id"]);
                }
                catch
                {
                    RedirectToDefaultPage();
                }
            }
        }
    }
}
